<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>06_IIFE-传参</title>
    </head>
    <body>
        <script>
            (function(name){
                console.log('hello ' + name);
            })('张三');
        </script>
    </body>
</html>